function Slide(obj) {
    this.obj = obj, this.left = this.obj.offsetLeft, this.init()
}
Slide.prototype = {
    constructor: Slide,
    start: function(e) {
        this.startX = e.touches[0].clientX - this.offsetLeft
    },
    end: function() {
        var obj = this;
        obj.disX > 0 && (obj.style.transition = "300ms all ease", a.style.left = 0), a.disX < this.leftX && (a.style.transition = "300ms all ease", a.style.left = this.leftX + "px")
    },
    move: function(a) {
        this.disX = a.touches[0].clientX - this.startX, this.leftX = this.parentNode.offsetWidth - this.offsetWidth, this.style.transition = "", this.style.left = this.disX + "px"
    },
    bindEvent: function() {
        var a = this.obj;
        a.addEventListener("touchstart", this.start, !1), a.addEventListener("touchmove", this.move, !1), a.addEventListener("touchend", this.end, !1)
    },
    init: function() {
        this.bindEvent();
    }
};
function slider(obj) {
    this.obj = obj;

}